import request from '@/utils/request'

/* 列表分页*/
export function selectDetailPage(data) {
  return request({
    url: '/financial/pieceRateWage/selectDetailPage',
    method: 'post',
    data: data
  })
}

/* 列表分页*/
export function selectGroupPage(data) {
  return request({
    url: '/financial/pieceRateWage/selectGroupPage',
    method: 'post',
    data: data
  })
}

/* 计算工资*/
export function calculatePieceRateWage(data) {
  return request({
    url: '/financial/pieceRateWage/calculatePieceRateWage',
    method: 'post',
    data: data
  })
}

/* 修改*/
export function updatePieceRateWageDetailById(data) {
  return request({
    url: '/financial/pieceRateWage/updatePieceRateWageDetailById',
    method: 'post',
    data: data
  })
}

/* 查询*/
export function selectPieceRateWageDetailById(data) {
  return request({
    url: '/financial/pieceRateWage/selectPieceRateWageDetailById/' + data,
    method: 'post'
  })
}

/* 删除*/
export function deletePieceRateWageDetail(data) {
  return request({
    url: '/financial/pieceRateWage/deletePieceRateWageDetail',
    method: 'post',
    data: data
  })
}

/* 删除*/
export function deletePieceRateWageGroup(data) {
  return request({
    url: '/financial/pieceRateWage/deletePieceRateWageGroup',
    method: 'post',
    data: data
  })
}
